]> dgit.raspbian.org Git - gnome-shell.git/commit
ui/windowManager: Fix horizontal scrolling when smooth events are used
authorPascal Nowack <Pascal.Nowack@gmx.de>
Thu, 11 Feb 2021 14:17:22 +0000 (15:17 +0100)
committerPascal Nowack <Pascal.Nowack@gmx.de>
Thu, 11 Feb 2021 14:43:19 +0000 (15:43 +0100)
commitd02612e790ef630864b621bb329db17de5419614
treed41f191de47896f31abaa1f8c1ebee193353740b
parent21faae480ed3a3794192864dab8ea006b1592c39
ui/windowManager: Fix horizontal scrolling when smooth events are used

Currently, gnome-shell uses the wrong scrolling direction for
horizontal scrolling events.
When dx < 0 for a smooth scroll event, then the scrolling direction is
supposed to be Clutter.ScrollDirection.LEFT, instead of
Clutter.ScrollDirection.RIGHT, as dx is smaller than 0.

Fix this issue by swapping the values LEFT and RIGHT.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1665>
js/ui/windowManager.js